% BCI data offlineDemo
clear; clc;

% Reference and grounding on the forehead
EEGPath = './data/';
filename = {'data.bdf','evt.bdf'};
% EEGLAB struct
EEG = readbdfdata(filename, EEGPath);
% origin data
data = EEG.data;
% get event
event = struct2table(EEG.event);
% marker
type = str2double(event.type);

latency = event.latency;
% sampling rate
fs = EEG.srate;

%% show data
figure
plot(data(1,:))


